from django.contrib import admin
from django.urls import path

from rest_framework.routers import SimpleRouter

router = SimpleRouter()
from .views import CourseCategoryView, SearchCourseView, CourseView, CourseChapterView

router.register('category', CourseCategoryView, 'category')
router.register('course', CourseView, 'course'),
router.register('course_chapter', CourseChapterView, 'course_chapter'),
router.register('search', SearchCourseView, 'search'),
urlpatterns = [

]
urlpatterns += router.urls
